3.4.60 \(\int x \log (f x^m) (a+b \log (c (d+e x)^n)) \, dx\) [360]

Optimal. Leaf size=158 \[ -\frac {3 b d m n x}{4 e}+\frac {1}{4} b m n x^2+\frac {b d n x \log \left (f x^m\right )}{2 e}-\frac {1}{4} b n x^2 \log \left (f x^m\right )+\frac {b d^2 m n \log (d+e x)}{4 e^2}-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {b d^2 n \log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 e^2}-\frac {b d^2 m n \text {Li}_2\left (-\frac {e x}{d}\right )}{2 e^2} \]

[Out]

-3/4*b*d*m*n*x/e+1/4*b*m*n*x^2+1/2*b*d*n*x*ln(f*x^m)/e-1/4*b*n*x^2*ln(f*x^m)+1/4*b*d^2*m*n*ln(e*x+d)/e^2-1/4*(
m*x^2-2*x^2*ln(f*x^m))*(a+b*ln(c*(e*x+d)^n))-1/2*b*d^2*n*ln(f*x^m)*ln(1+e*x/d)/e^2-1/2*b*d^2*m*n*polylog(2,-e*
x/d)/e^2

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 158, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {2473, 45, 2393, 2332, 2341, 2354, 2438} \begin {gather*} -\frac {b d^2 m n \text {PolyLog}\left (2,-\frac {e x}{d}\right )}{2 e^2}-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {b d^2 n \log \left (\frac {e x}{d}+1\right ) \log \left (f x^m\right )}{2 e^2}+\frac {b d^2 m n \log (d+e x)}{4 e^2}+\frac {b d n x \log \left (f x^m\right )}{2 e}-\frac {3 b d m n x}{4 e}-\frac {1}{4} b n x^2 \log \left (f x^m\right )+\frac {1}{4} b m n x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x*Log[f*x^m]*(a + b*Log[c*(d + e*x)^n]),x]

[Out]

(-3*b*d*m*n*x)/(4*e) + (b*m*n*x^2)/4 + (b*d*n*x*Log[f*x^m])/(2*e) - (b*n*x^2*Log[f*x^m])/4 + (b*d^2*m*n*Log[d
+ e*x])/(4*e^2) - ((m*x^2 - 2*x^2*Log[f*x^m])*(a + b*Log[c*(d + e*x)^n]))/4 - (b*d^2*n*Log[f*x^m]*Log[1 + (e*x
)/d])/(2*e^2) - (b*d^2*m*n*PolyLog[2, -((e*x)/d)])/(2*e^2)

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2332

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rule 2341

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log[c*x^
n])/(d*(m + 1))), x] - Simp[b*n*((d*x)^(m + 1)/(d*(m + 1)^2)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2354

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[Log[1 + e*(x/d)]*((a +
b*Log[c*x^n])^p/e), x] - Dist[b*n*(p/e), Int[Log[1 + e*(x/d)]*((a + b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2393

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> Wit
h[{u = ExpandIntegrand[a + b*Log[c*x^n], (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c,
d, e, f, m, n, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[m] && IntegerQ[r]))

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 2473

Int[Log[(f_.)*(x_)^(m_.)]*((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((g_.)*(x_))^(q_.), x_Symbol] :
> Simp[(-(g*(q + 1))^(-1))*(m*((g*x)^(q + 1)/(q + 1)) - (g*x)^(q + 1)*Log[f*x^m])*(a + b*Log[c*(d + e*x)^n]),
x] + (-Dist[b*e*(n/(g*(q + 1))), Int[(g*x)^(q + 1)*(Log[f*x^m]/(d + e*x)), x], x] + Dist[b*e*m*(n/(g*(q + 1)^2
)), Int[(g*x)^(q + 1)/(d + e*x), x], x]) /; FreeQ[{a, b, c, d, e, f, g, m, n, q}, x] && NeQ[q, -1]

Rubi steps

\begin {align*} \int x \log \left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right ) \, dx &=-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {1}{2} (b e n) \int \frac {x^2 \log \left (f x^m\right )}{d+e x} \, dx+\frac {1}{4} (b e m n) \int \frac {x^2}{d+e x} \, dx\\ &=-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {1}{2} (b e n) \int \left (-\frac {d \log \left (f x^m\right )}{e^2}+\frac {x \log \left (f x^m\right )}{e}+\frac {d^2 \log \left (f x^m\right )}{e^2 (d+e x)}\right ) \, dx+\frac {1}{4} (b e m n) \int \left (-\frac {d}{e^2}+\frac {x}{e}+\frac {d^2}{e^2 (d+e x)}\right ) \, dx\\ &=-\frac {b d m n x}{4 e}+\frac {1}{8} b m n x^2+\frac {b d^2 m n \log (d+e x)}{4 e^2}-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {1}{2} (b n) \int x \log \left (f x^m\right ) \, dx+\frac {(b d n) \int \log \left (f x^m\right ) \, dx}{2 e}-\frac {\left (b d^2 n\right ) \int \frac {\log \left (f x^m\right )}{d+e x} \, dx}{2 e}\\ &=-\frac {3 b d m n x}{4 e}+\frac {1}{4} b m n x^2+\frac {b d n x \log \left (f x^m\right )}{2 e}-\frac {1}{4} b n x^2 \log \left (f x^m\right )+\frac {b d^2 m n \log (d+e x)}{4 e^2}-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {b d^2 n \log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 e^2}+\frac {\left (b d^2 m n\right ) \int \frac {\log \left (1+\frac {e x}{d}\right )}{x} \, dx}{2 e^2}\\ &=-\frac {3 b d m n x}{4 e}+\frac {1}{4} b m n x^2+\frac {b d n x \log \left (f x^m\right )}{2 e}-\frac {1}{4} b n x^2 \log \left (f x^m\right )+\frac {b d^2 m n \log (d+e x)}{4 e^2}-\frac {1}{4} \left (m x^2-2 x^2 \log \left (f x^m\right )\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac {b d^2 n \log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 e^2}-\frac {b d^2 m n \text {Li}_2\left (-\frac {e x}{d}\right )}{2 e^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.09, size = 164, normalized size = 1.04 \begin {gather*} \frac {\log \left (f x^m\right ) \left (-2 b d^2 n \log (d+e x)+e x \left (2 b d n+2 a e x-b e n x+2 b e x \log \left (c (d+e x)^n\right )\right )\right )+m \left (-3 b d e n x-a e^2 x^2+b e^2 n x^2+b d^2 n (1+2 \log (x)) \log (d+e x)-b e^2 x^2 \log \left (c (d+e x)^n\right )-2 b d^2 n \log (x) \log \left (1+\frac {e x}{d}\right )\right )-2 b d^2 m n \text {Li}_2\left (-\frac {e x}{d}\right )}{4 e^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x*Log[f*x^m]*(a + b*Log[c*(d + e*x)^n]),x]

[Out]

(Log[f*x^m]*(-2*b*d^2*n*Log[d + e*x] + e*x*(2*b*d*n + 2*a*e*x - b*e*n*x + 2*b*e*x*Log[c*(d + e*x)^n])) + m*(-3
*b*d*e*n*x - a*e^2*x^2 + b*e^2*n*x^2 + b*d^2*n*(1 + 2*Log[x])*Log[d + e*x] - b*e^2*x^2*Log[c*(d + e*x)^n] - 2*
b*d^2*n*Log[x]*Log[1 + (e*x)/d]) - 2*b*d^2*m*n*PolyLog[2, -((e*x)/d)])/(4*e^2)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 1.04, size = 1994, normalized size = 12.62

method result size
risch \(\text {Expression too large to display}\) \(1994\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*ln(f*x^m)*(a+b*ln(c*(e*x+d)^n)),x,method=_RETURNVERBOSE)

[Out]

1/4*b*m*n*x^2-1/4*I*x^2*Pi*ln(c)*b*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)+1/8*I*m*Pi*b*x^2*csgn(I*c)*csgn(I*(e*x+
d)^n)*csgn(I*c*(e*x+d)^n)-1/4*I*x^2*ln(f)*Pi*b*csgn(I*c)*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)+1/4*I*x^2*Pi*a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2*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)^2+1/4*b*d^2*m*n*ln(e*x+d)/
e^2-3/4*b*d*m*n*x/e

________________________________________________________________________________________

Maxima [A]
time = 0.32, size = 176, normalized size = 1.11 \begin {gather*} \frac {1}{4} \, {\left (2 \, {\left (\log \left (x e + d\right ) \log \left (-\frac {x e + d}{d} + 1\right ) + {\rm Li}_2\left (\frac {x e + d}{d}\right )\right )} b d^{2} n e^{\left (-2\right )} - {\left (3 \, b d n x e - b d^{2} n \log \left (x e + d\right ) + b x^{2} e^{2} \log \left ({\left (x e + d\right )}^{n}\right ) - {\left (b {\left (n - \log \left (c\right )\right )} - a\right )} x^{2} e^{2}\right )} e^{\left (-2\right )}\right )} m - \frac {1}{4} \, {\left ({\left (2 \, d^{2} e^{\left (-3\right )} \log \left (x e + d\right ) + {\left (x^{2} e - 2 \, d x\right )} e^{\left (-2\right )}\right )} b n e - 2 \, b x^{2} \log \left ({\left (x e + d\right )}^{n} c\right ) - 2 \, a x^{2}\right )} \log \left (f x^{m}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(f*x^m)*(a+b*log(c*(e*x+d)^n)),x, algorithm="maxima")

[Out]

1/4*(2*(log(x*e + d)*log(-(x*e + d)/d + 1) + dilog((x*e + d)/d))*b*d^2*n*e^(-2) - (3*b*d*n*x*e - b*d^2*n*log(x
*e + d) + b*x^2*e^2*log((x*e + d)^n) - (b*(n - log(c)) - a)*x^2*e^2)*e^(-2))*m - 1/4*((2*d^2*e^(-3)*log(x*e +
d) + (x^2*e - 2*d*x)*e^(-2))*b*n*e - 2*b*x^2*log((x*e + d)^n*c) - 2*a*x^2)*log(f*x^m)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(f*x^m)*(a+b*log(c*(e*x+d)^n)),x, algorithm="fricas")

[Out]

integral(b*x*log((x*e + d)^n*c)*log(f*x^m) + a*x*log(f*x^m), x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*ln(f*x**m)*(a+b*ln(c*(e*x+d)**n)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(f*x^m)*(a+b*log(c*(e*x+d)^n)),x, algorithm="giac")

[Out]

integrate((b*log((x*e + d)^n*c) + a)*x*log(f*x^m), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x\,\ln \left (f\,x^m\right )\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*log(f*x^m)*(a + b*log(c*(d + e*x)^n)),x)

[Out]

int(x*log(f*x^m)*(a + b*log(c*(d + e*x)^n)), x)

________________________________________________________________________________________